<template>
	<view>
		<u-navbar :is-fixed='true' :background="{backgroundColor: '#F0F0F0'}" :is-back="false" title="行情"></u-navbar>
		
		<view class="top">
			<text class="top_le">资产名</text>
			<view class="top_ri">
				<text style="font-size: 40rpx;"></text> <text>涨跌幅</text>  
			</view>
		</view>
		<view class="cont">
			<view class="con_list" @click="con_ri(index)" v-for="(item,index) in list">
				<view class="con_list_false" >
					<view class="con_list_text1">
						<image src="../../static/my/z2.png" mode=""></image>
						BCH/USDT
					</view>
					<view class="con_list_text2">
						<view class="">
							$15486.25
						</view>
						<view class="">
							-10.55%
						</view>
					
					</view>
				</view>
				
			</view>
			<view class="" style="height: 40rpx;">
				
			</view>
		</view>
		
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[{c:false},{c:false},{c:false},{c:false},{c:false},{c:false}]
			}
		},
		methods: {
			// 点击list的添加
			con_ri(index){
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #F0F0F0;
		height: 80vh;
	}
	.top{
		width: 100vw;
		height: 138rpx;
		background: #1989FA;
		border-radius: 20rpx;
		display: flex;
		position: relative;
		color: #FFFFFF;
		font-size: 24rpx;
	}
	.top_ri{
		width: 160rpx;
		height: 100%;
		// background-color: rgba(46, 164, 255, 1);
		border-radius: 20rpx;
		margin-top: 8rpx;
		position: absolute;
		right: 0rpx;
		text-align: center;
		
	}
	.top_ri text:nth-child(2){
		position: relative;
		top: -5rpx;
	}
	.top_le{
		margin-left: 30rpx;
		margin-top: 20rpx;
	}
	.cont{
		background-color: #FFFFFF;
		width: 100vw;
		position: relative;
		top: -70rpx;
		border-radius: 20rpx 20rpx 0rpx 0rpx;
		padding-left: 4vw;
		padding-right: 4vw;
		height: 82vh;
		overflow-y:scroll ;
	}

	.con_list_text2_ri{
		position: absolute;
		right: 20rpx;
		top: -10%;
		font-size: 40rpx;
	}
	
	.con_list_false{
		display: flex;
		height: 118rpx;
		border-bottom: 1px solid #E0E0E0;
		line-height: 118rpx;
		position: relative;
	}
	.con_list_text1{
		font-size: 28pxr;
		font-family: PingFang SC;
		font-weight: 600;
		color: #333333;
	}
	.con_list_text1 image{
		height: 44rpx;
		width: 44rpx;
		position: relative;
		top: 10rpx;
		margin-right: 10rpx;
	}
	.con_list_text2{
		font-size: 20rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #999999;
		position: absolute;
		right: 0rpx;
		line-height: 40rpx;
		text-align: right;
		top: 20rpx;
	}
	.con_list_text2 view:nth-child(1){
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #333333;
	}
	.con_list_text2 view:nth-child(2){
		position: relative;
		top: -4rpx;
		font-size: 20rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #F20C0C;
	}
</style>
